<?php

class Gateway

{

                function getPublisherID(){
		global $ado;
		$res = $ado->exec("SELECT `publisher_id` FROM `gateway` LIMIT 1");
		$row = mysql_fetch_assoc($res);
		return $row['publisher_id'];		
	        }
	        
	        function getGatewayID(){
		global $ado;
		$res = $ado->exec("SELECT `gateway_id` FROM `gateway` LIMIT 1");
		$row = mysql_fetch_assoc($res);
		return $row['gateway_id'];		
	        }
	        
	        function getPassword(){
		global $ado;
		$res = $ado->exec("SELECT `password` FROM `gateway` LIMIT 1");
		$row = mysql_fetch_assoc($res);
		return $row['password'];		
	        }
	        
	        function getNetwork(){
		global $ado;
		$res = $ado->exec("SELECT `network` FROM `gateway` LIMIT 1");
		$row = mysql_fetch_assoc($res);
		return $row['network'];		
	        }
}

global $gateway;

$gateway = new Gateway();

?>